package CorpusConverter;

import java.io.File;
import java.io.IOException;

/**
 * @author Robert Pethes
 * 
 * Abstract corpus class. A corpus is associated with a data file.
 */

public abstract class Corpus {
	
	protected File _dataFile;
	
	/**
	 * Initializes the corpus.
	 * 
	 * @param dataFile a file containing a collection of training instances.
	 */
	public Corpus(File dataFile){
		_dataFile = dataFile;
	}
	
	/**
	 * @return the next instance from the corpus.
	 * @throws IOException
	 */
	public abstract String getNextSentence() throws IOException;
}
